package com.kt.service.imp;

import com.kt.dao.imp.CategoryDAOImp;
import com.kt.domain.Category;
import com.kt.service.CategoryService;

public class CategoryServiceImp implements CategoryService {
    private CategoryDAOImp categoryDAOImp = new CategoryDAOImp();
    public Category findByName(String name) {
        return categoryDAOImp.findByName(name);
    }

    public int addCategory(Category category) {
        return categoryDAOImp.addCategory(category);
    }
}
